package com.wanwu.channel.notify.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * @ClassName NotifyResponse
 * @Description 微信支付回调处理完成之后返回结果
 * @Author husheng
 * @Date 2020-01-06 17:41
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@JacksonXmlRootElement(localName = "xml")
public class NotifyResponse implements Serializable {

    private static final long serialVersionUID = -8421335331095605745L;

    @JacksonXmlProperty(localName = "return_code")
    @JSONField(name = "return_code")
    private String returnCode;

    @JacksonXmlProperty(localName = "return_msg")
    @JSONField(name = "return_msg")
    private String returnMsg;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }

}
